import rxAjax from '@/assets/js/ajax.js';

//应用授权接口日志表 api接口
export const SysAppLogApi = {};

SysAppLogApi.baseUrl= '/api-system/system/core/sysAppLog';
SysAppLogApi.exportUrl= SysAppLogApi.baseUrl + '/listExport';

//查询列表
SysAppLogApi.query=function (parameter) {
  var url= SysAppLogApi.baseUrl + '/query';
  return rxAjax.postJson(url,parameter).then (res => {
    return res.result
  })
}

/**
* 获取单记录
* @param pkId
* @returns {*}
*/
SysAppLogApi.get =function(pkId) {
  var url= SysAppLogApi.baseUrl + '/get?pkId=' + pkId;
  return rxAjax.get(url);
}

//保存数据
SysAppLogApi.save =function(parameter) {
  var url= SysAppLogApi.baseUrl + '/save';
  return rxAjax.postJson(url,parameter);
}

//删除数据
SysAppLogApi.del =function(parameter) {
  var url= SysAppLogApi.baseUrl + '/del';
  return rxAjax.postUrl(url,parameter);
}

export  default SysAppLogApi;

